package com.ctgu.A1_3;

import java.util.List;

public class Instructor {
    public String name;
    private List<Subject> subjectList;//每个指导老师下面至少有1-3门课程

    public Instructor() {
    }

    public Instructor(String name, List<Subject> subjectList) {
        this.name = name;
        this.subjectList = subjectList;
    }

    @Override
    public String toString() {
        return "导师{" +
                "导师名='" + name + '\'' +
                ", 课程名=" + subjectList +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Subject> getSubjectList() {
        return subjectList;
    }

    public void setSubjectList(List<Subject> subjectList) {
        this.subjectList = subjectList;
    }
}
